package main.java.chessfootball.model.game;

import main.java.chessfootball.model.play.Vector;

/**
 * User: Igor
 * Date: 10.06.2011
 * Time: 21:48:43
 */
public class Player
{
	private Team team;
	private Cell cell;
	private Integer number;

	public Player(Team team, Cell cell, Integer number)
	{
		this.team = team;
		this.cell = cell;
		this.number = number;
	}

	public void move(Vector to)
	{
	   	cell = to.getCell(cell, 1);
	}

	public void put(Cell on)
	{
		this.cell = on;
	}

	public Team getTeam()
	{
		return team;
	}

	public Cell getCell()
	{
		return cell;
	}

	public Integer getNumber()
	{
		return number;
	}
}
